package cn.com.xjnt.vas.manage.repository;

import java.util.List;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.QueryHints;

import com.frameworks.core.repository.BaseRepository;

import cn.com.xjnt.vas.manage.domain.entity.Permission;

public interface PermissionRepository extends BaseRepository<Permission, Long> {
	
	@QueryHints(value={
			@QueryHint(name="org.hibernate.cacheable",value="true"),
			@QueryHint(name="org.hibernate.cacheRegion",value="SystemCache")
		}
	)
	List<Permission> findByModuleId(Long moduleId);
	
	List<Permission> findByIdIn(Long[] ids);
	
}
